package com.itheima.test1110work2;
//鸟类 子类
public class Bird extends Animal {
    private String sound;
    private double Speed;

    public Bird(String kind, double weight, String sound, double speed) {
        super(kind, weight);
        this.sound = sound;
        Speed = speed;
    }
    public Bird(){}

    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    public double getSpeed() {
        return Speed;
    }

    public void setSpeed(double speed) {
        Speed = speed;
    }
}
